package com.ant.backstage.dao;

import com.ant.backstage.facade.model.Rolepermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* Created by Mybatis Generator 2021/12/23
*/
public interface RolepermissionMapper {
    int insert(Rolepermission record);

    List<Rolepermission> selectAll();

    List<Rolepermission> selectByRoleId(@Param("roleId") Integer roleId);

    List<Rolepermission> selectByRoleIds(@Param("roleIds")List<Integer> roleIds);

    void delByRoleAndPreId(@Param("roleId")String roleId, @Param("perId")String perId);

}